﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Com.Web.coffinegurunaru.AppLogic.Page;
using Com.Framework;
using Com.Framework.Data;
using Com.Library.DB.MP3Player;
using Com.Library.Page;

namespace Com.Web.coffinegurunaru.manager.banner
{
	public partial class musicMethod : ManagerAjaxPage
	{
		public void Create(string MP3URL, string Title)
		{
			MP3PlayerModel.Create(MP3URL, Title);
		}

		public void Remove(int IndexNo)
		{
			MP3PlayerModel.Remove(IndexNo);
		}

		public string GetList(int PageNo, byte PageSize)
		{
			ListData<MP3PlayerEntity, OutputEntity> data = MP3PlayerModel.GetList(PageNo, PageSize);
			Dictionary<string, object> properties = new Dictionary<string, object>();
			properties.Add("MusicList", data.Record);
			string retValue = ViewManager<ManagerPage>.Render("/manager/banner/musiclist.ascx", properties);
			return retValue;
		}
	}
}
